import request from '../utils/request'
export function getmenus(data) {
  return request({
    url: '/api/company/department'

  })
}
export function getbumen(data) {
  return request({
    url: '/api/sys/user/simple'

  })
}
export function addbumen(data) {
  return request({
    url: '/api/company/department',
    method: 'post',
    data

  })
}
export function emitbumen(data) {
  return request({
    url: `/api/company/department/${data}`

  })
}
export function doemit(data) {
  return request({
    url: `/api/company/department/${data.id}`,
    method: 'put',
    data

  })
}
export function dodel(data) {
  return request({
    url: `/api/company/department/${data}`,
    method: 'delete'

  })
}

